ControlObject

ToolbarItem Class

Used to create a toolbar in a window. Supported on Mac OS X 10.2 and above only.

Events

Action

Close

Open

Properties

Caption

HelpTagLong

ControlOrder

Image

Enabled

Left

Handle

Top

HelpTag

 

Methods

SetImageFromIcon

ToolbarItems can be placed in windows for other platforms for layout purposes only.

The following are popular icons for use with SetImageFromIcon:

Creator

Type

Description

macs

tdel

Delete

macs

tfav

Favorites

macs

thom

Home

macs

burn

Burn

macs

ejec

Eject

macs

CLIP

Clipboard

macs

desk

Desktop

macs

FNDR

Finder

macs

trsh

Trash

macs

ftrh

Full Trash

macs

docu

Document

macs

gurl

URL

macs

udsk

iDisk

macs

ilht

HTTP

macs

ilft

FTP

macs

gnet

Network


For a complete list of Apple-supplied icons, see Icons.h in the Universal Headers.


Note

If the Caption property contains an ampersand character, it will display only if it is preceded by another ampersand character. For example, if you set the Caption property to "Bob & Ray", only "Bob Ray" will display. You need to set it to "Bob && Ray". The ampersand character is used on Windows to signify the keyboard accelerator.


See Also

StandardToolbarItem control.